-- GENERATED SPELL FOR [Naxxanar Skeletal Mage] --


function spell0_25396(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25396', 3000, 1)
end

function spell1_25396(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25396', 7000, 1)
end

function Sorts_25396(pUnit, Event)
local choix_sorts_25396 = math.random(0, 1)
if choix_sorts_25396 == 0 then
pUnit:RegisterEvent('spell0_25396', 1, 1)
end
if choix_sorts_25396 == 1 then
pUnit:RegisterEvent('spell1_25396', 1, 1)
end
end

function mob25396_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25396', math.random(1500, 3000), 1)
end

function mob25396_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25396_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25396_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25396, 1, 'mob25396_Action')
RegisterUnitEvent(25396, 2, 'mob25396_Leave')
RegisterUnitEvent(25396, 3, 'mob25396_Kill')
RegisterUnitEvent(25396, 4, 'mob25396_Die')
